package com.smsc.headend.task.engine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smsc.headend.module.asset.entity.ConfigMeterTemplate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

/**
 * (接口定义)
 *
 * @author wjh
 * @date 2022/6/22 14:30.
 */
public interface ConfigMeterTemplateMapper extends BaseMapper<ConfigMeterTemplate> {

    @Select("SELECT ${templateColName} FROM M_CONFIG_METER_TEMPLATE WHERE METER_ID = #{meterId}")
    @ResultType(Long.class)
    Long getMeterTemplateId(@Param("meterId")Long meterId, @Param("templateColName") String templateColName);
}
